public class Dog {
    String name;

    public Dog(String name) {
        this.name = name;
    }

    public void show() {
        System.out.println("这只小狗名字是" + name );
    }
}

class Ciwei {
    String name;

    public Ciwei(String name) {
        this.name = name;

    }

    public void show() {
        System.out.println("这个刺猬叫" + name );
    }
}

class Man {
    String name;
    char sex;

    public Man(String name, char sex) {
        this.name = name;
        this.sex = sex;
    }

    public void show() {
        System.out.println("这个叫" + name + "的人,性别是" + sex);
    }
}

class Dog1 {
    String name;

    public Dog1(String name) {
        this.name = name;

    }

    public void bite(Dog a) {
        System.out.println("大狼狗" + name + "咬了狗");
        a.show();
        System.out.println("狗咬狗，一嘴毛");
    }

    public void bite(Ciwei b) {
        System.out.println("大狼狗" + name + "咬了刺猬");
        b.show();
        System.out.println("狗咬刺猬，无从下口");

    }

    public void bite(Man c) {
        System.out.println("大狼狗" + name + "咬了人");
        c.show();
        System.out.println("狗咬吕洞宾，不识好人心");

    }
}
